package org.example.controller;

import org.example.conditional.ListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConditionalController {

    @Autowired
    ListService listService;

    @GetMapping("condition")
    public String condition() {
        System.out.println(listService.showListCmd());
        return listService.showListCmd();
    }
}
